<%@ page language="java" pageEncoding="utf-8" import="java.util.*"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>编辑内容---${topic.title}</title>
<%@ include file="/common/meta.jsp"%>
<!--  ckeditor测试-->
<script type="text/javascript" src="${ctx }/fckeditor/fckeditor.js"></script>
<script type="text/javascript">
	window.onload = function() {
        var sBasePath="/mybbs/fckeditor/";
		var oFCKeditor = new FCKeditor('topic.text');
		oFCKeditor.BasePath = sBasePath;
		oFCKeditor.ReplaceTextarea();
	}
</script>
<!--  ckeditor测试-->
</head>
<body>
<table width="100%" border="0">
	<tr>
		<td>
<%@ include file="/common/header.jsp"%>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="10" width="100%" align="center" border="0">
	<tr>
		<td class="bodyline" valign="top">

<table cellspacing="2" cellpadding="2" width="100%" align="center">
				<tr>
<td>
<span class="mainmenu"> 
<a id="backtosite" class="mainmenu" href="${ctx }">
首页</a>&gt;&gt;
<a class="mainmenu" href="forum.action">论坛首页</a>&gt;&gt;<a class="mainmenu" href="forum.action?method:listTopics=&forumId=${forum.id}">${forum.forumName}</a>
</span>
</td>
</tr>
</table>
<form action="${ctx }/forum/forumadmin.action" name="postForm" method="post">
 <input name="forumId" type="hidden" value="${forumId}"/>
<table cellspacing="1" cellpadding="4" width="100%" border="0">
<tr >
<td align="right" style="width: 30px" nowrap="nowrap">
主题:
</td>
<td align="left">
<input name="topic.id" type="hidden" class="required" style="width: 100%" value="${topic.id}"/>
<input name="topic.subject" type="text" class="required" style="width: 100%" value="${topic.subject}"/>
</td>
</tr>
 <tr >
<td align="right" nowrap="nowrap">
</td>
<td>
<textarea id="topic_text" name="topic.text" onfocus="initFckeditor()"  rows="8" cols="60">${topic.text}</textarea>
<br/>
<input class="mainoption" type="submit" name="method:savetopicForum" value="保存" onclick="return(simpleValidation.validation(document.postForm))"/>
		<script type="text/javascript"></script>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<%@ include file="/common/footer.jsp"%>
</td>
</tr>
</table>
</body>
</html>